package com.example.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 腾讯云短信验证码服务常量
 */
@Component
public class BaiduConstant implements InitializingBean {
    @Value("${Baidu.key}")
    private String key;
    @Value("${Baidu.appid}")
    private String appid;
@Value("${Baidu.authorization}")
    private String authorization;
    public static String APPID;
    public static String KEY;
    public static String Authorization;


    @Override
    public void afterPropertiesSet() throws Exception {
        APPID = appid;
        KEY = key;
        Authorization = authorization;
    }
}
